package com.smart.config;

import java.util.Map;

/**
 * @Author xiaoqiang
 * @Version NotifyThreadLocal.java, v 0.1 2025年03月22日 21:50 xiaoqiang
 * @Description: 存放赋值时的异常信息
 */
public class NotifyThreadLocal {
    private static final ThreadLocal<Exception> threadLocal = new ThreadLocal<>();

    public static void setException(Exception e) {
        threadLocal.set(e);
    }

    public static Exception getException() {
        return threadLocal.get();
    }

    public static void removeException() {
        threadLocal.remove();
    }
}
